import numpy as np

B_pool = 1.16e-9
pS_pool = 563
R1_pool = 1000
g_pool = 0.002
L2_pool = 3e9

## preset of the population
popsize_pool = 40    # population size.
npar_pool = 40		# Dimension of the problem.
param_maxit_pool = 500		# Maximum number of iterations.


lb_pool = -np.ones((npar_pool)) * 5.12 #Lower dimension boundary.
ub_pool = np.ones((npar_pool)) * 5.12 #Upper dimension boundary.

deltax_pool = 0.0001 #calculation accuracy of difference method


#天线隔离度计算参数
Tx_pool = np.array([],dtype=np.float32)
Rx_pool = np.array([],dtype=np.float32)

mesh_file_pool = "A320-mesh_new.facet"
results_filename_pool = "results"
freq_pool = 1.268e9

target_couple_pool = []
def build_geodesic_data():
    Geodesic_cfg_data = {
        '<freq_MHz>':freq_pool/1e6,
        '<file_name>':results_filename_pool,
        '<mesh_file>':mesh_file_pool,  #"A320-mesh_new.facet"
        '<Rx>':Rx_pool,
        '<Tx>':Tx_pool,
    }
    return Geodesic_cfg_data

## test funcion, which can be replaced with your own cost function.
def benchmark_pool(x,npar):
    pass